/*
 * Copyright (C) 2013 tangzhi
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.tangzsoft.pdmviewer.parser;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author tangzhi
 */
public interface Constants {
    
    public final static String ATTRIBUTE_NAMESPACE = "a";
    public final static String OBJECTS_NAMESPACE = "o";
    public final static String COLLECTION_NAMESPACE = "c";
    
    
    public final static String ID = "Id";
    
    public final static String ATTR_NAME = "Name";
    public final static String ATTR_CODE = "Code";
    public final static String ATTR_CREATEION_DATE = "CreationDate";
    public final static String ATTR_CREATOR = "Creator";
    public final static String ATTR_MODIFICATION_DATE = "ModificationDate";
    public final static String ATTR_MODIFIER = "Modifier";
    
    public final static String ATTR_COMMENT = "Comment";
    public final static String ATTR_DESCRIPTION = "Description";
    
    public final static Set<String> PARSER_ELEMENT = 
            new HashSet<String>(Arrays.asList(new String[]{
                /*1*/
                "Model", "PhysicalDiagrams", "PhysicalDiagram", "Symbols",
                /*2*/
                "Tables", "Table",
                    "Columns", "Column",
                    "Keys", "Key",
                    "Indexes", "Index",
                    /*PrimaryKey*/
                /*3*/
                "Sequences", "Sequence"
                }));
    
}
